package com.tool.engine.export.mertics;

import com.tool.engine.export.mertics.collect.NumberRecord;

import java.util.List;

public interface Collector {
    void incrExportTaskCount();

    void decrExportTaskCount();

    void incrProcessTask();

    void decrProcessTask();

    void incrFetchTime(long costTime, int size);

    void incrWriteTime(long costTime, int size);

    void incrTotalTime(long costTime);

    void incrCapacity(int dataSize, long bytesSize, long threshold);

    void decrCapacity(long bytesSize, long threshold);

    List<NumberRecord> getCollectValue(int type);

    long getAvgMemorySize();

    int getProcessingTaskCount();
}
